home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / qbbs / qexprt25.zip / QEXPORT.DOC next >
Text File  |  1989-10-05  |  15KB  |  463 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                         ┌─────────────────────────────┐
  9.                         │      -*- Q-Export -*-       │
  10.                         └─────────────────────────────┘
  11.  
  12.                                     v2.50
  13.  
  14.                          A Message Exporting Utility
  15.                             for QuickBBS Systems.
  16.  
  17.                                       by
  18.  
  19.                                   Bob Ransom
  20.  
  21.                               Copyright (c) 1989
  22.                              All Rights Reserved
  23.  
  24.  
  25.  
  26.           First Things First --
  27.  
  28.           This version of Q-Export is being released as shareware.
  29.           A great deal of work has gone into this program, expanding
  30.           it and making it more versatile, adding features, etc.
  31.           If, after a reasonable trial period, you find it useful
  32.           and wish to use it regularly, please send a small donation
  33.           of $5 to me at the address listed at the end of this
  34.           document.
  35.  
  36.  
  37.           What It Be --
  38.  
  39.           Q-Export is a simple means to move massive amounts of
  40.           messages out of your QuickBBS message base and into a text
  41.           file.  Since QuickBBS stores its messages in a Turbo
  42.           Pascal database, with a variety of index files and other
  43.           things, you can't just "TYPE" the message base and make
  44.           any sense out of it.
  45.  
  46.           Q-Export will dump messages from any single message board
  47.           or from all boards at once, starting at any valid message
  48.           number to an export file which you can name (if you don't
  49.           wish to name it, Q-Export will name it for you.)
  50.           Additionally, you may also tell Q-Export to only dump
  51.           messages addressed to a specific user, or from a specific
  52.           user, and have Q-Export search for keywords in the Subject
  53.           line.
  54.  
  55.  
  56.           Command Line Syntax --
  57.  
  58.           Q-Export is driven strictly by command line parameters; no
  59.           "control" file is used.  Here's a summary of the syntax
  60.           followed by some examples:
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.           Q-Export v2.5 Doc                                Page 2
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.           QEXPORT <-Bxxx><-Nxxx><-Hxxx><-Exxx><-Txxx/-Fxxx><-Sxxx>
  75.                   [<-Z>]
  76.           where:
  77.  
  78.           -B = Message board to export from or "All" for all
  79.                boards.  Ex: -B7 or -Ball
  80.  
  81.           -N = Starting message number to begin export.  If message
  82.                number is out of range, export begins at the first
  83.                valid message number.  Ex: -N14254
  84.  
  85.           -H = File to store "last message exported" number for
  86.                running Q-Export automatically from a batch file.
  87.                See below for more on this.
  88.  
  89.           -E = File to export the messages to.  If no filename is
  90.                specified, Q-Export will name the file QEXP-xxx.TXT
  91.                where xxx is the board number messages were exported
  92.                from.  If the file already exists, Q-Export will
  93.                append the exported messages at the bottom.  Ex:
  94.                -Eqbbsecho.txt
  95.  
  96.           -L = Log all activity to QEXPORT.LOG.  The log structure
  97.                is much like the command structure:  Each item is
  98.                preceded by a letter that matches with the command
  99.                line syntax ("B:12" means messages on board #12;
  100.                "E:textfile.ext" means messages are exported to the
  101.                file "textfile.ext").  Ex: -L
  102.  
  103.           -T/-F = Tells Q-Export to either export only messages
  104.                to a specific user (-T) or from a specific user
  105.                (-F).  You must use an underline to separate the
  106.                first and last names.  Right now you can only
  107.                export messages to a user OR from a user, but not
  108.                both.  Ex: -Tbob_ransom or -Fjoe_doe
  109.  
  110.           -S = Keyword in the "Subject" field to search for.  This
  111.                is not really word specific; it will find any and
  112.                all matches, regardless of case or whether the match
  113.                is a complete word or just part of a word.  For
  114.                more on this, see below.  Ex: -Sqbbs
  115.  
  116.           -Z = Use to reset the high message read pointers created
  117.                with the -H option.  This command will rarely be
  118.                used.  See below for more info.
  119.  
  120.           Examples:
  121.  
  122.           QEXPORT -N12 -B2 -Fjohn_doe
  123.           - exports messages from board #2, starting with message
  124.           #12, that are from John Doe.
  125.  
  126.           QEXPORT -Ball -Hallbord.hi -TBob_Ransom
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.           Q-Export v2.5 Doc                                Page 3
  134.  
  135.  
  136.  
  137.  
  138.  
  139.           - exports all messages on all boards addressed to Bob
  140.           Ransom.  The last message number is stored in the file
  141.           ALLBORD.HI.  The -B command could be left out in this
  142.           case, as default is to all boards.
  143.  
  144.           QEXPORT -N1 -B7 -Eqbbs.txt -Sqbbs is
  145.           - exports all messages from board #7 starting with message
  146.           #1 in which the subject field contains "qbbs is".  Export
  147.           filename is QBBS.TXT.
  148.  
  149.           QEXPORT    (no parameters at all)
  150.           - exports all messages from all boards.  Be careful with
  151.           this as Q-Export doesn't care how large your message base
  152.           is, or whether or not there's enough space to actually
  153.           export the entire base.  If your message base is 8 meg,
  154.           your export file will be 8 meg.
  155.  
  156.           QEXPORT ?
  157.           - brings up a small help screen.
  158.  
  159.  
  160.           The -H Parameter --
  161.  
  162.           Q-Export will create a sort of "last read" message pointer
  163.           if you so desire.  This is useful if you run Q-Export
  164.           nightly or weekly from a batch file.  Here's what it does:
  165.           If you specify the -H parameter (and filename), Q-Export
  166.           will store the message number of the last message exported
  167.           in this file.  The next time Q-Export is run using the -H
  168.           parameter and same filename, Q-Export will pick up where
  169.           it left off and export only new messages.
  170.  
  171.           Here's an example that I use here in the nightly
  172.           maintenance section of my main BBS batch file:
  173.  
  174.           QEXPORT -B23 -Epascal.txt -Hpascal.hi
  175.  
  176.           Each night when this runs, messages on board #23 (Pascal
  177.           Echo) are exported to the file PASCAL.TXT, starting with
  178.           the message number stored in PASCAL.HI.  Each night, only
  179.           new messages are exported.  If last night the last message
  180.           exported was 12178, then tonight exporting will start with
  181.           12179.
  182.  
  183.           The first time Q-Export is run using the -Hfilename
  184.           parameter, filename won't exist.  Q-Export will bitch a
  185.           bit, then create the file and begin the export from the
  186.           first valid message.
  187.  
  188.           There's one hitch to this: when you renumber your message
  189.           base.  Q-Export has no way of knowing when you do this,
  190.           and doing so without changing the -H files means that
  191.           Q-Export won't export anything.   Here's why: Say you have
  192.           3500 messages on your system numbered from 1 - 28774.  The
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.           Q-Export v2.5 Doc                                Page 4
  200.  
  201.  
  202.  
  203.  
  204.  
  205.           last time you ran Q-Export with the -H option, 28774 was
  206.           stored in the "high message" file.  Then you run MSGPACK
  207.           with the -R option to renumber the messages.  Now messages
  208.           are numbered from 1 - 3500.  When Q-Export runs again with
  209.           the -H option it finds that 28774 is an invalid message
  210.           number and aborts.  A problem.  This is where the -Z
  211.           command comes into play.
  212.  
  213.           The -Z Command --
  214.  
  215.           This command, when used in conjunction with -Hfilename
  216.           will reset the high message number in filename to the last
  217.           valid message number on the system.  In the above example,
  218.           filename would be reset to 3500.  Note: You must use -Z
  219.           with -H (to tell Q-Export which high message pointer to
  220.           reset).  Without the -H, Q-Export will simply abort as it
  221.           doesn't know what to do.  Example:
  222.  
  223.           QEXPORT -Z -Hpascal.hi
  224.  
  225.           This resets the number in the file PASCAL.HI to the
  226.           correct high message number on the system.
  227.  
  228.           QEXPORT -Z
  229.  
  230.           This does nothing.  Q-Export just aborts.
  231.  
  232.           Note to users of older versions of Q-Export:  You no
  233.           longer need the separate program SET-QEXP.EXE as that
  234.           function is now built in with the -Z command.
  235.  
  236.  
  237.           More On "Subject" Searches (-S) --
  238.  
  239.           As mentioned before, if you use the -S parameter Q-Export
  240.           will search for any matches in the Subject field of the
  241.           messages.  Case is not important, nor does it search for
  242.           just whole words - partial words will be found, too.
  243.           Also, Q-Export will search for more than one word if you
  244.           wish.  Here are a couple of examples of the -S parameter
  245.           in use, and what would be found.
  246.  
  247.           QEXPORT -Sand syntax
  248.  
  249.           The Subject "spelling and syntax" would be considered a
  250.           match as would the Subject "command syntax" (both contain,
  251.           literally, "and syntax").
  252.  
  253.           QEXPORT -Sa
  254.  
  255.           The following subjects would all match: "A big deal,"
  256.           "deal," "android," "A," etc.  Anything where the Subject
  257.           contains the letter A (upper or lower case).
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.           Q-Export v2.5 Doc                                Page 5
  266.  
  267.  
  268.  
  269.  
  270.  
  271.           As mentioned and shown above, multiple words may be
  272.           searched for without specifying the -S before each word.
  273.           You need only do it once.  After that, any parameter that
  274.           doesn't start with a proper Q-Export command is considered
  275.           a subject to search for.  Here's a convoluted example:
  276.  
  277.           QEXPORT -Sthat -B7 was -N1 then -Edump.txt and this is now
  278.  
  279.           Kind of a mess but it would work as follows: All messages
  280.           from board #7, starting with message #1, would be exported
  281.           to the file DUMP.TXT if the subject contained the phrase
  282.           "that was then and this is now" (or "THAT Was then aNd
  283.           thIS IS noW"; remember, case doesn't count.)   I don't
  284.           suggest doing it this way.  In fact, I suggest for clarity
  285.           you always put Subject searches as the last parameter.
  286.  
  287.  
  288.           Stuff You Should Know --
  289.  
  290.           Not only is case not important in subject searches, it
  291.           doesn't matter anywhere.  Q-Export is not case sensitive
  292.           at all.
  293.  
  294.           Name searches look for exact matches.
  295.  
  296.           Remember to always separate first and last names with an
  297.           underline (Bob_Ransom).  This is how Q-Export decides if
  298.           it's a first and last name, or part of the Subject to be
  299.           searched for.
  300.  
  301.           Q-Export is hard to stop once it's running.  Don't blame
  302.           me, blame Borland.  Turbo Pascal checks for BREAK after
  303.           every normal screen write.  For added speed, I'm using
  304.           some different screen writes (direct writes) that don't
  305.           use standard Turbo Pascal WRITELN commands.  Hence, BREAK
  306.           (aka CONTROL-C or ^C) doesn't do much.  Sorry 'bout that.
  307.           I've considered making it possible to switch all screen
  308.           writes to go through DOS so that Q-Export would be
  309.           redirectable.  If I do that, and you use the DOS mode,
  310.           BREAK would work.  But it would be slow, slow, slow...
  311.  
  312.           I don't know if I need to mention this or not: Q-Export
  313.           must be run from your main QuickBBS directory.
  314.  
  315.           Q-Export was written using Turbo Pascal 5.0.  I still
  316.           haven't gotten around to upgrading to 5.5 yet.
  317.  
  318.  
  319.           Legal Stuff --
  320.  
  321.           Q-Export is released as shareware, meaning that after a
  322.           reasonable trial period, if you wish to continue to use
  323.           the program you should send $5 to me at the address below.
  324.           This program is not public domain -- it is copyrighted by
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.           Q-Export v2.5 Doc                                Page 6
  332.  
  333.  
  334.  
  335.  
  336.  
  337.           the author with all rights reserved.  It may be copied
  338.           freely provided no changes are made to the executable
  339.           files, document files, or any other related files included
  340.           in the original package.  You are free to rearchive the
  341.           files using whatever archiver you wish provided all of the
  342.           original files are included and no other files added, and
  343.           provided that you don't add any sort of advertisement to
  344.           the archive comment.  Registered users will receive a
  345.           sincere thank you from me, either by netmail or by U.S.
  346.           Mail, and will be considered registered for any and all
  347.           future releases of the program.  Beta testers are
  348.           specifically exempt from the need to register.  Your help
  349.           is invaluable to me and is worth much more than the
  350.           registration fee.
  351.  
  352.  
  353.           Future Plans --
  354.  
  355.           The next step in the ongoing evolution of the program will
  356.           be to add two features:  1- The ability to follow message
  357.           threads (reply chains) to make for easier offline reading.
  358.           Now that 2.04 has the feature, I'd like to take advantage
  359.           of it.  2- Modem routines to allow Q-Export to run as a
  360.           door.  Mike Ratledge has done a phenominal job with the
  361.           QMX/XRS system and I have no desire to compete with that.
  362.           I would, however, like to make it possible for non-MS-DOS
  363.           users to take advantage of the offline message reading
  364.           that we IBM types have grown so accustomed to.  Adding
  365.           this is gonna take some work, so don't expect this to be
  366.           released next week.  :-)
  367.  
  368.  
  369.           That's about it.  Hope you like how the program works.
  370.           Should you run into problems or have questions or
  371.           suggestions, feel free to contact me via the QUICKBBS
  372.           echo, the QUICKPRO echo, PASCAL echo, or via netmail.
  373.  
  374.           -Bob Ransom
  375.            The Creative Connection BBS
  376.            27840 Lathrup Blvd.
  377.            Lathrup Village, MI  48076
  378.            (313) 559-9039
  379.            (1:120/96.0)
  380.  
  381.           October 4, 1989
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.           Q-Export v2.5 Doc                                Page 7
  398.  
  399.  
  400.  
  401.  
  402.  
  403.                    ┌───────────────────────────────────────┐
  404.                    │  R E G I S T R A T I O N   F O R M    │
  405.                    └───────────────────────────────────────┘
  406.  
  407.           DATE:
  408.  
  409.  
  410.           NAME:
  411.  
  412.  
  413.           ADDRESS:
  414.  
  415.  
  416.           CITY:                       STATE/PROVINCE:
  417.  
  418.  
  419.           ZIP/POSTAL CODE:            COUNTRY:
  420.  
  421.  
  422.           BBS NAME:
  423.  
  424.  
  425.           BBS PHONE:                      NET/NODE #:
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.